app.controller('logController', ['$scope', 'httpWrapService', '$state', '$stateParams','AppConstants','TableFactory',
        function($scope, httpWrapService, $state, $stateParams,AppConstants, TableFactory) {

	$scope.params = {};
	var userId = $scope.params.userId = {
			field : 'userId',
			type : AppConstants.filter.EXACT,
			term : ''
	};
	var startTime = $scope.params.startTime = {
			field : 'time',
			dateFormat : 'yyyy-MM-dd 00:00:00',
			type : AppConstants.filter.GREATER_THAN_OR_EQUAL,
			term : ''
	};
	var endTime = $scope.params.endTime = {
			field : 'time',
			dateFormat : 'yyyy-MM-dd 23:59:59',
			type : AppConstants.filter.LESS_THAN_OR_EQUAL,
			term : ''
	};
	var littleModule = $scope.params.littleModule = {
			field : 'littleModule',
			type : AppConstants.filter.EXACT,
			term : ''
	};
	var type = $scope.params.type = {
			field : 'type',
			type : AppConstants.filter.EXACT,
			term : ''
	};
	var isSuccess = $scope.params.isSuccess = {
			field : 'isSuccess',
			type : AppConstants.filter.EXACT,
			term : ''
	};
	var msg = $scope.params.msg = {
			field : 'msg',
			type : AppConstants.filter.CONTAINS,
			term : ''
	};
	
	

    $scope.Table1 = TableFactory.newInstance({
		url : 'system/log/list.do',
		params : [userId, startTime, endTime, littleModule, type, isSuccess, msg]
	});
    $scope.Table1.load();

}]);